<%--
    Document   : logeoadmin
    Created on : 20-feb-2010, 13:24:07
    Author     : Alumno
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title >JSP Page</title>
        <%@ page import="pe.com.transportes.modelo.BeanN" %>

<jsp:useBean id="mal" scope="session" class="pe.com.transportes.modelo.BeanN" />

    <style type="text/css">
<!--
.Estilo1 {font-family: Arial, Helvetica, sans-serif}
body {
	background-image: url(fondos/gray.gif);
}
.Estilo2 {
	font-size: 24px
}
-->
    </style>
</head>

    <body>
        <link rel="stylesheet" type="text/css" href="./css/estilos2.css"/>

         <h1 align="center" class="h2 Estilo2">Pagina de Ingreso de Clientes</h1>
<form name="formulario" action="SLC"
              method="POST" >
            <table border="1" width="60%"  align="center">
            <thead>
                <tr>
                    <th><span class="Estilo1">Campo</span></th>
                    <th><span class="Estilo1">Valor</span></th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td><span class="Estilo1">Codigo de Usuario:</span></td>
                    <td>
                        <input name="codigo" type="text"
                               value="" size="20" />                    </td>
                </tr>

                <tr>
                    <td><span class="Estilo1">Password:</span></td>
                    <td><input name="clave" type="password"
                               value="" size="10" /></td>
                </tr>
                <%
//Validar si Existe la sesion.
 BeanN  xx = new BeanN();
  xx = (BeanN)session.getAttribute("mal");

if(xx!=null &&   xx.isError()==true  ){
    System.out.println("Hay  errores.....");
    %>
    <tr class="error">
                    <td ><span class="Estilo1">Error</span></td>
                    <td> <span class="Estilo1"><%=xx.getDescerror()  %> </span></td>
             </tr>
             <tr class="error">
                    <td height="22"><span class="Estilo1">Solucion</span></td>
                    <td> <span class="Estilo1"><%=xx.getDescsolucion() %></span></td>
             </tr>
     <%
	//response.sendRedirect("login.jsp");
}
%>
            </tbody>
        </table>
      <table width="60%" height="38" border="1"  align="center">
            <tr > <td><table width="520" border="0">
             <tr>
                 <td width="253">&nbsp;</td>
               <td width="257"><input type="submit" value="Ingresar"name="enviar"  /></td>
              </tr>
             </table>
             <div align="left"><kbd><a href="index.jsp"></a></kbd></div>
              </td></tr>
          </table>
      </form>



        </body>
</html>